﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QOpenGLWidget>
#include <QDebug>
#include <QOpenGLFunctions_3_3_Core>
#include <math.h>
#include <opencv2/opencv.hpp>
/*
namespace Ui {
class Widget;
}

*/

class Triangle : public QOpenGLWidget
{
public:
    Triangle(QWidget *parent = nullptr);
    ~Triangle();
    GLfloat coloursource;

    virtual void initializeGL();
    virtual void resizeGL(int w, int h);
    virtual void paintGL();
private:
    GLuint shaderProgram,shaderProgram1;
    QOpenGLFunctions_3_3_Core *core;
    GLuint texture1,texture2;

};
#endif
